#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char ch1[80];
	//char ch2[80];
	gets(ch1);
	int len = strlen(ch1);
	for (int i = len - 1; i >= 0; i--)
	{
		printf("%c", ch1[i]);
	}
	return 0;
}